package org.jeecg.modules.tplus.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 *  往来单位查询
 *
 * @author hzq
 */
@Data
public class PartnerQueryReqDto {
    /**
     * 请求参数
     */
    @Schema(description = "请求参数")
    @JsonProperty(value = "param")
    private PartnerQueryParam param;

    @Data
    public static class PartnerQueryParam{
        /**
         * 往来单位编码
         */
        @Schema(description = "往来单位编码")
        @JsonProperty(value = "Code")
        private String code;

        /**
         * 往来单位名称
         */
        @Schema(description = "往来单位名称")
        @JsonProperty(value = "Name")
        private String name;

        /**
         * 往来单位分类
         */
        @Schema(description = "往来单位分类")
        @JsonProperty(value = "PartnerClass")
        private PartnerClass partnerClass = new PartnerClass();

        /**
         * 记录条数
         */
        @Schema(description = "记录条数")
        @JsonProperty(value = "PageSize")
        private int pageSize = 500;

        /**
         * 返回字段
         */
        @Schema(description = "返回字段")
        @JsonProperty(value = "SelectFields")
        private String selectFields;
    }

    @Data
    public static class PartnerClass{
        /**
         * 往来单位分类编码
         */
        @Schema(description = "分类编码")
        @JsonProperty(value = "Code")
        private String code = "01";
    }
}
